package com.example.demo.design.strategy_pattern;

/**
 * @Author: liull
 * @Description: 折扣算法抽象接口
 * @Date: Created in 17:55 2020/11/18
 * @Modified By:
 */
public interface Discount {
    /**
     * 根据原价计算电影票
     * 
     * @param price 原价
     * @return 真实票价
     */
    double calculate(double price);
}
